<template>
  <div
    class="auto-1623485236047 m-layer z-show m-layer-w2"
    style="top: 106.5px; left: 450px"
    v-show="isshow"
  >
    <div class="zbar" id="auto-id-MJ8t2BhllUTfOnJx">
      <div class="zttl f-thide">提示</div>
    </div>
    <div class="zcnt">
      <div class="lyct f-cb f-tc" id="auto-id-ZTorA79ToNpaqde3">
        <div class="f-fs1" style="padding: 0 20px; line-height: 22px">
          {{content}}
        </div>
        <div class="lybtn">
          <a
           @click="ok"
            class="u-btn2 u-btn2-2 u-btn2-w2"
            href="javascript:;"
            ><i>确定</i></a
          ><a
          @click="no"
            class="u-btn2 u-btn2-1 u-btn2-w2"
            href="javascript:;"
            ><i>取消</i></a
          >
        </div>
      </div>
    </div>
    <span class="zcls" title="关闭窗体" @click="isshow = false">×</span>
  </div>
</template>
<script>

export default {
   data() {
       return {
           content:"",
           isshow:false,
           c_fun:null
       }
   },
   methods:{
       show(content = "默认文本" , fun){
            this.isshow = true
            this.content = content
            this.c_fun = fun
       },
       ok(){
           this.c_fun(200)
            this.isshow = false
       },
       no(){
           this.isshow = false
       },
   }
}
</script>


<style scoped>
div.m-layer-w2 {
    width: 480px;
}
div.m-layer {
    position: absolute;
    z-index: 9998;
    border-radius: 4px;
    box-shadow: 0 5px 16px rgb(0 0 0 / 80%);
    border: none;
}
.auto-1623485236047 {
    background: #fff;
}
div.m-layer .zbar {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #191919;
    border-radius: 4px 4px 0 0;
    background: #2d2d2d;
}
 div.m-layer .zcls{
    background: url("https://s2.music.126.net/style/web2/img/layer/layer.png?772608a45c8377a6cca34e27a39998f9") no-repeat 0 9999px;;
}
 div.m-layer .zttl , div.m-layer .zbar{
         cursor: move;
 }
.auto-1623485236047 .zbar {
    line-height: 30px;
}
div.m-layer .zttl {
    padding-right: 45px;
    margin: 0;
    height: 38px;
    line-height: 38px;
    padding-left: 18px;
    border-radius: 3px 3px 0 0;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    background-position: 50% 0;
}
.f-thide {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}
div.m-layer div.zcnt {
    padding: 0;
    border: 1px solid #878787;
    border-width: 0 1px 1px;
    border-radius: 0 0 4px 4px;
    background: #fff;
}
div.m-layer .lyct {
    padding: 40px 0;
}
.f-tc {
    text-align: center;
}
.f-fs1 {
    font-size: 14px;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}
div.m-layer .lybtn {
    margin-top: 30px;
}
div.m-layer .lybtn a{
    margin: 0 10px;
}
.u-btn2 {
    font-size: 12px;
    text-decoration: none;
    padding: 0 5px 0 0;
    white-space: nowrap;
   
}

.u-btn2, .u-btn2 i {
    display: inline-block;
    height: 31px;
    line-height: 31px;
    overflow: hidden;
    vertical-align: top;
    text-align: center;
    cursor: pointer;
    background: url("../../assets/imgs/button2.png") no-repeat;
}
em, i {
    font-style: normal;
    text-align: left;
    font-size: inherit;
}
.u-btn2-2 {
    color: #fff;
    background-position: right -428px;
}
.u-btn2-2 i {
    color: #fff;
    background-position: 0 -387px;
}
.u-btn2-1 {
    color: #333;
    background-position: right -100px;
}
.u-btn2-1 i {
    color: #333;
    background-position: 0 -59px;
}
.u-btn2-w2 i {
    width: 40px;
}
.u-btn2 i {
    padding: 0 15px 0 20px;
    pointer-events: none;
}
div.m-layer .zcls {
    position: absolute;
    z-index: 20;
    top: 16px;
    right: 20px;
    width: 10px;
    height: 10px;
    overflow: hidden;
    text-indent: -9999px;
    cursor: pointer;
    background-position: 0 -95px;
}
</style>